package com.dsbj.mp.icardservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * 人员暂用
 */
@Data
@TableName("H_P_PERSONT")
public class Persont implements Serializable {

    @TableId(value = "id",type = IdType.UUID)
    private String id;

    private String companyno;

    private String employeeno;

    private String employeename;

    private String idcardno;

    private String address;

    private String eod;

    private String sex;

    private String remark;

    private String firstdeptname ; //一级部门名称

    private String deptname;

    private String phoneNumber;

    //自定义
    @TableField(exist = false)
    private String employeenoDim;

    @TableField(exist = false)
    private String employeenameDim;

    @TableField(exist = false)
    private String notEmployeeno;

    @TableField(exist = false)
    private String[] ids;

    @TableField(exist = false)
    private String companyname;

    public static final List<String> COLUMN_HEAD = new ArrayList<String>();

    public static final Map<Integer, Integer> COLUMN_WIDTH= new LinkedHashMap<Integer, Integer>(14);

    static {
        COLUMN_WIDTH.put(0, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH.put(1, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH.put(2, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH.put(3, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH.put(4, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH.put(5, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH.put(6, (int) ((1000 * 20) / 3.57));

        COLUMN_HEAD.add("工号");
        COLUMN_HEAD.add("姓名");
        COLUMN_HEAD.add("性别");
        COLUMN_HEAD.add("身份证号码");
        COLUMN_HEAD.add("入职日期");
        COLUMN_HEAD.add("户口所在地");
        COLUMN_HEAD.add("备注");
    }
    public static final List<String> COLUMN_HEAD_1 = new ArrayList<String>();

    public static final Map<Integer, Integer> COLUMN_WIDTH_1= new LinkedHashMap<Integer, Integer>(14);

    static {
        COLUMN_WIDTH_1.put(0, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_1.put(1, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_1.put(2, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_1.put(3, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_1.put(4, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_1.put(5, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_1.put(6, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_1.put(7, (int) ((1000 * 20) / 3.57));

        COLUMN_HEAD_1.add("工号");
        COLUMN_HEAD_1.add("姓名");
        COLUMN_HEAD_1.add("性别");
        COLUMN_HEAD_1.add("身份证号码");
        COLUMN_HEAD_1.add("入职日期");
        COLUMN_HEAD_1.add("户口所在地");
        COLUMN_HEAD_1.add("备注");
        COLUMN_HEAD_1.add("校验结果");
    }
    public static final List<String> COLUMN_HEAD_2 = new ArrayList<String>();

    public static final Map<Integer, Integer> COLUMN_WIDTH_2= new LinkedHashMap<Integer, Integer>(14);

    static {
        COLUMN_WIDTH_2.put(0, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_2.put(1, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_2.put(2, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_2.put(3, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_2.put(4, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_2.put(5, (int) ((1000 * 20) / 3.57));
        COLUMN_WIDTH_2.put(6, (int) ((1000 * 20) / 3.57));

        COLUMN_HEAD_2.add("工号");
        COLUMN_HEAD_2.add("姓名");
        COLUMN_HEAD_2.add("身份证号码");
        COLUMN_HEAD_2.add("入职日期");
        COLUMN_HEAD_2.add("户口所在地");
        COLUMN_HEAD_2.add("备注");
        COLUMN_HEAD_2.add("校验结果");
    }


}
